{include file="common/header"}
<link href="/static/admin/css/other.css" rel="stylesheet">
<main class="lyear-layout-content">
    <div class="container-fluid">
        <div class="row ant-menu-submenu">
            <div class="col-lg-10 col-b90">
                <div class="card">
                    <div class="right-card-header card-header">
                        <h4>{:lang('set.chat_page')}</h4>
                    </div>
                    <div class="card-body access_code">
                        <div class="row">
                            <div class="form-group col-md-12">
                                <button type="button" class="btn btn-default copy-link" data-clipboard-action="copy" data-clipboard-target="#copyVal">{:lang('public.copy_code')}</button>
                            </div>
                            <div class="access-code-lists col-lg-10">
                                <pre id="copyVal">
                                    &lt;link rel="stylesheet" href="{:request()->domain()}/chat/css/chat.css"&gt;
                                    &lt;div id="IM_chat-lists" class="IM_chat-form"&gt;
                                        &lt;i class="chat-icon"&gt;&lt;/i&gt;&lt;a class="IM_chat-item" href="{:urldecode($miniUrl)}" target="_blank"&gt;在线咨询&lt;/a&gt;
                                    &lt;/div&gt;
                                </pre>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>
{include file="common/footer"}
<script type="text/javascript" src="/static/admin/js/set.js"></script>
<script type="text/javascript" src="/static/admin/js/clipboard.min.js"></script>
<script type="text/javascript">
    var clipboard = new ClipboardJS('.copy-link');
    clipboard.on('success', function(e) {
        we_im_msg("{:lang('public.copy_success')}");
        $('#copyVal').select();
    });
</script>